<?php
$this->widget('CLinkPager', array(
    'pages' => $pages,
    'header' => "Total: {$pages->itemCount}&nbsp; Records&nbsp;",
    'firstPageLabel' => 'First Page',
//    'endPageLabel' => 'End Page',
    'prevPageLabel' => '«',
    'nextPageLabel' => '»',
    'maxButtonCount' => 12
));
$this->widget('CListPager', array('pages' => $pages,
    'header' => '',
));